<%@ page import="ro.gateway.aida.search.ResultsFormat,
			  ro.gateway.aida.charts.ChartWizzard$ActionForm,
			  java.util.List"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/translator.tld" prefix="trans" %>
<% ChartWizzard$ActionForm form = (ChartWizzard$ActionForm) session.getAttribute("chartzform");%>
<% List search_results = (List) session.getAttribute("results"); %>
<trans:initPage module="charts" />
<table align="center" width="50%" cellspacing="1" cellpadding="4"
 border="0" background=<html:rewrite page="/images/pixelbgtable.gif"/> class="text_search">
<html:form action="/charts/wizzard">
	<html:hidden property="page" value="1" />
	<tr bgcolor="#FFFFFF">
		<td style="padding:10px;"><trans:showPageMessage label="chart.wizz.title"/></td>
	</tr>
	<tr bgcolor="#FFFFFF">
		<td style="padding:1px;"><trans:showPageMessage label="chart.wizz.step1.title"/></td>
	</tr>
	<tr bgcolor="#FFFFFF">
		<td>
		<html:radio property="chart_type" value="bar"/>
		<trans:showPageMessage label="chart.wizz.bar"/><br/>
		<html:radio property="chart_type" value="bar3d"/>
		<trans:showPageMessage label="chart.wizz.bar3d"/>
		</td>
	</tr>
	<tr bgcolor="#FFFFFF">
		<td>
		<html:radio property="chart_type" value="time"/>
		<trans:showPageMessage label="chart.wizz.time"/>
		</td>
	</tr>
	<tr bgcolor="#FFFFFF">
		<td>
		<html:radio property="chart_type" value="pie"/>
		<trans:showPageMessage label="chart.wizz.pie"/><br/>
		<html:radio property="chart_type" value="pie3d"/>
		<trans:showPageMessage label="chart.wizz.pie3d"/>
		</td>
	</tr>
	<tr bgcolor="#FFFFFF">
		<td style="padding:1px;"><trans:showPageMessage label="chart.wizz.step2.title"/></td>
	</tr>
	<tr bgcolor="#FFFFFF">
		<td>
		<trans:showPageMessage label="chart.yaxe"/><br/>
		<html:select property="y_axe_criteria">
			<html:option value="prjcounter"><trans:showPageMessage label="prjcounter" hide_link="true"/></html:option>
			<html:option value="<%=ResultsFormat.FUNDING_AMOUNT_COLUMN%>"><trans:showPageMessage label='<%=ResultsFormat.FUNDING_AMOUNT_COLUMN%>' hide_link="true"/></html:option>
			<html:option value="<%=ResultsFormat.FUNDING_AMOUNT_ORG_COMM_COLUMN%>"><trans:showPageMessage label='<%=ResultsFormat.FUNDING_AMOUNT_ORG_COMM_COLUMN%>' hide_link="true"/></html:option>
			<html:option value="<%=ResultsFormat.FUNDING_AMOUNT_ORG_DISB_COLUMN%>"><trans:showPageMessage label='<%=ResultsFormat.FUNDING_AMOUNT_ORG_DISB_COLUMN%>' hide_link="true"/></html:option>
		</html:select>
		</td>
	</tr>
	<tr bgcolor="#FFFFFF">
		<td>
		<trans:showPageMessage label="chart.dimensions"/><br/>
		<html:text property="chartwidth" size="4" /> pixels / <html:text property="chartheight" size="4" /> pixels
		</td>
	</tr>
	<tr bgcolor="#FFFFFF">
		<td aling="center">
		<input class=buton type="button" name="x1"
			value="<trans:showPageMessage label="chart.wizz.next" hide_link="true" />"
			onclick="javascript:this.form.submit();"
			/>
		</td>
	</tr>
</html:form>
</table>
<trans:showPageMessage label="translator.showhiddentags"/>